package com.mcxx.modules.temporary.order.service.write;

import com.mcxx.modules.temporary.order.dao.write.TmpOrderCertWriteDao;
import com.mcxx.modules.temporary.order.entity.TmpOrderCertEntity;
import com.yinhai.ta404.core.transaction.annotation.TaTransactional;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("tmpOrderCertWriteService")
@TaTransactional
public class TmpOrderCertWriteService {

    @Autowired
    private TmpOrderCertWriteDao tmpOrderCertWriteDao;


    public int insert(TmpOrderCertEntity tmpOrderCertEntity) {
        return tmpOrderCertWriteDao.insert(tmpOrderCertEntity);
    }


    public int insertIgnoreNull(TmpOrderCertEntity tmpOrderCertEntity) {
        return tmpOrderCertWriteDao.insertIgnoreNull(tmpOrderCertEntity);
    }


    public int update(TmpOrderCertEntity tmpOrderCertEntity) {
        return tmpOrderCertWriteDao.update(tmpOrderCertEntity);
    }


    public int updateIgnoreNull(TmpOrderCertEntity tmpOrderCertEntity) {
        return tmpOrderCertWriteDao.updateIgnoreNull(tmpOrderCertEntity);
    }


    public void deleteById(String id) {
        tmpOrderCertWriteDao.deleteById(id);
    }


    public void batchDelete(String[] ids) {
        tmpOrderCertWriteDao.batchDelete(ids);
    }


    public int updateById(List<String> idList, String orderId, String associationTable, String associationTableId){
        return tmpOrderCertWriteDao.updateById(idList,orderId,associationTable,associationTableId);
    }
}
